<%--
  Created by IntelliJ IDEA.
  User: ASUS
  Date: 2021/9/6
  Time: 15:57
  To change this template use File | Settings | File Templates.
--%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <base href="<%=basePath%>"/>
    <title>Title</title>
    <link href="static/css/style.css" rel="stylesheet" type="text/css"/>
</head>

<body>

<div class="place">
    <span>位置：</span>
    <ul class="placeul">
        <li><a href="#">首页</a></li>
        <li><a href="#">表单</a></li>
    </ul>
</div>
<shiro:hasPermission name="product:add">
<form action="<%=basePath%>productController/add.do" method="post">
    <div class="formbody">

        <div class="formtitle"><span>基本信息</span></div>
        <ul class="forminfo">

            <li><label>生产编号：</label><input name="productId" type="text" class="dfinput"/></li>
            <li><label>产品名称：</label><input name="productName" type="text" class="dfinput"/></li>
            <li><label>生产数量：</label><input name="productQuantity" type="text" class="dfinput"/></li>
            <li><label>生产日期：</label><input name="dateOfManufacture" type="text" class="dfinput"/></li>
            <li><label>状态：</label><input name="state" type="text" class="dfinput"/></li>

            <li><label>&nbsp;</label><input name="" type="submit" class="btn" value="确认保存"/></li>
        </ul>

    </div>
</form>
</shiro:hasPermission>
</body>
</html>
